﻿using UnityEngine;

/// <summary>
/// 玩家
/// </summary>
public class Player : MonoBehaviour
{
    public int uid;
    
    public Trans GetTrans()
    {
        Trans trans = new Trans(
            transform.position.x,
            transform.position.y,
            transform.position.z,
            transform.rotation.eulerAngles.y);
        return trans;
    }

    public void SetPosition(Vector3 pos)
    {
        transform.position = pos;
    }

    public void SetRotation(Quaternion q)
    {
        transform.rotation = q;
    }

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
         
    }
}
